package com.zhanggm.springcloud.jpa.feign;

import io.lettuce.core.dynamic.annotation.CommandNaming;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "mongodb-demo")
public interface LogApi {

    @PostMapping("/mongo/addLog")
    public boolean addLog(@RequestBody String logJsonData);
}
